package com.woniuxy.edubureau.util;

import java.text.NumberFormat;

/**
 * @author: luojiwei
 * @date: 2020/7/28 18:44
 * @description: 格式化数据
 */
public class NumberFormateUtil {
    public static double getNumFormate(int num1,int num2) {
        NumberFormat format=NumberFormat.getInstance();
        format.setMaximumFractionDigits(2);
        String result=format.format(((double) num1)/((double) num2)*100);
        return Double.parseDouble(result);
    }
}
